#coding=utf-8
# .cnpmjs.org
# qgit 

import re
import sys
import os

print(str(sys.argv))

if len(sys.argv) >= 3:
    if sys.argv[1] == "clone":
        path=sys.argv[2]
        newPath=re.sub("^https://github.com","https://github.com.cnpmjs.org",path)
        os.system("git clone "+newPath)